﻿@model IRIS.Models.LinkViewModel

@{
    ViewBag.Title = "IRIS Ættleiðingartengd fræðsla : Hlekkjaflokkar";
}

@section SubMenu
{
    <ul id="submenu">
    @foreach (var item in Model.m_linkCategories)
    { 
        <li>@Html.ActionLink(item.Name, "../LinkCategry/Index/", new { id = item.ID }) </li>
        
    }
    </ul>
}
@if (Model.m_links.Count() > 0)
{
    <div class="links">
    <h4>@Model.m_linkCategory.Name</h4>

        @foreach (var item in Model.m_links)
        {
           <ul>
           <li>
           <a href="http://@item.URL">@item.Title</a>-<span> @item.Description</span>
           </li>
           </ul>
        }
    </div>
}
else
{
    <p>Engir hlekkir</p>
}